home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / eed24lib.zip / TTL1LS.LIB < prev    next >
Text File  |  1992-06-24  |  18KB  |  1,728 lines

  1. EEDRAW-LIB Version 1.0
  2. #
  3. # 74 LS 2 TTL 2 library - first part
  4. #
  5. #                Gershon Elber Nov 89
  6. #
  7. #
  8. # Definitions:
  9. #
  10. # First line MUST hold the keywords EDRAW-LIB. This is used to find non
  11. # library files before an attempt is made to load them. Version is currently
  12. # ignored but may be used in case newer format is introduced.
  13. #
  14. # Lines start with '#' are ignored (comments).
  15. #
  16. # Every part name must start with DEF and end with DEFEND keywords. the DEF
  17. # line looks like:
  18. #
  19. # DEF Name Prefix #Pins TextInside DrawNum #Units #PinsPerUnit
  20. #
  21. # Were    1. Name is the Part name, i.e. "74LS00". If Name is prefixed with ~
  22. #       (for example "~74LS00") then the name is not drawn.
  23. #    2. Prefix is the prefix to be used in chip name (IC, R, C etc.). If
  24. #       prefix is "~", then no prefix is drawn.
  25. #    3. #Pins is the same as number of entries in PINS 2 (or L 2 entries in
  26. #       DRAW), i.e 14 for 74LS00.
  27. #       4. TextInside is 0 if pin text is to be put outside as well (as the
  28. #       pin numbers), otherwise inside. You may put any positive
  29. #       integer there to scale the distance inside. 10 is a good start.
  30. #       5. DrawNum is 1 if pin numbers are to be drawn, 0 otherwise.
  31. #    6. #Units holds number of multiple entries. For example 74LS00 has
  32. #       4 units. For no multiple units put 0 here.
  33. #    7. #PinsPerUnit holds number of entries for one unit if more than
  34. #       one unit per part. If #Units is 0, it is ignored.
  35. #
  36. # The part definition itself contains the following blocks, in any order:
  37. #
  38. # 1. DRAW/ENDDRAW - defines how to draw the part. This block is optional, and
  39. #    a simple box with half the pins on each side is drawn if this block is
  40. #    not defined. The following commands are supported:
  41. #    A 2 2 x y r t1 t2        (Define ARC at x, y, radius r, anges t1 to t2)
  42. #    P 2 n x y x y x y... {F}    (Define a POLYLINE of (any) length n)
  43. #    C x y r            (Define a CIRCLE at x, y, radius r)
  44. #    S 2 x1 y1 x2 y2        (Define a square)
  45. #    T x y h str        (Define a text string at x, y (see below))
  46. #    L 2 x1 y1 x2 y2 {I}        (Define connection line to part - see PINS)
  47. #
  48. #    Notes:
  49. #    A. a text string with be drawn horizontally if h is 1, veritcally if 0.
  50. #    Also the str string '~' characters will be replaced by spaces, or this
  51. #    provides a mechanism to have spaces in the string.
  52. #    B. If the polyline (P) is postfixed by a F, the polyline defines a
  53. #    closed shape that will be filled. The first point of the polyline must
  54. #    be identical to last oe in this case.
  55. #    C. If the line (L) is postfixed by an I, this line is assumed to define
  56. #    negative logic, and a small circle will be drawn to express that.
  57. #    D. Points will be snapped to lines (L) only, and only to the second point
  58. #    of it. The first point must be the one connected to the object defined
  59. #    while the second provides the connection to the rest of the world.
  60. #    E. Arcs (A) should not exceed 180 degrees.
  61. #
  62. # 2. PINS/ENDPINS 2 - defines the names (strings) associated with each pin.
  63. #    The block holds #Pins lines each hold the string defines that pin. This
  64. #    order must be the same as define in the DRAW/ENDDRAW as L 2 commands
  65. #    (if DRAW/ENDDRAW block is defined), from pin 1 to #Pins. Empty lines
  66. #    are allowed are defined with one '~' on them. Not sign for X is defined
  67. #    by ~X.
  68. # 3. MULTI/ENDMULTI - This block must exists iff #unit != 0. Each line in this
  69. #    block holds the pin numbers of a unit. Number of lines is equal to number
  70. #    units in part.
  71. #
  72. # Notes:
  73. #
  74. # 1. All drawings are scaled up by 2 to make sure all pins are in the
  75. #    correct alignment.
  76. #
  77.  
  78. #
  79. # 74LS00
  80. #
  81. DEF 74LS00 IC 14 0 1 4 3
  82. DRAW
  83. A 2 0 0 5 -90 90
  84. P 2 4 0 5 -10 5 -10 -5 0 -5
  85. L 2 -10 3 -17 3
  86. L 2 -10 -3 -17 -3
  87. L 2 5 0 14 0 I
  88. ENDDRAW
  89. PINS
  90. ~
  91. ~
  92. ~
  93. ~
  94. ~
  95. ~
  96. Gnd
  97. ~
  98. ~
  99. ~
  100. ~
  101. ~
  102. ~
  103. Vcc
  104. ENDPINS
  105. MULTI
  106. 1 2 3
  107. 4 5 6
  108. 9 10 8
  109. 12 13 11
  110. ENDMULTI
  111. ENDDEF
  112.  
  113. #
  114. # 74LS01
  115. #
  116. DEF 74LS01 IC 14 0 1 4 3
  117. DRAW
  118. A 2 0 0 5 -90 90
  119. P 2 4 0 5 -10 5 -10 -5 0 -5
  120. L 2 5 0 14 0 I
  121. L 2 -10 3 -17 3
  122. L 2 -10 -3 -17 -3
  123. ENDDRAW
  124. PINS
  125. ~
  126. ~
  127. ~
  128. ~
  129. ~
  130. ~
  131. Gnd
  132. ~
  133. ~
  134. ~
  135. ~
  136. ~
  137. ~
  138. Vcc
  139. ENDPINS
  140. MULTI
  141. 1 2 3
  142. 4 5 6
  143. 10 9 8
  144. 13 12 11
  145. ENDMULTI
  146. ENDDEF
  147.  
  148. #
  149. # 74LS02
  150. #
  151. DEF 74LS02 IC 14 0 1 4 3
  152. DRAW
  153. A 2 0 0 5 -90 90
  154. P 2 2 0 5 -10 5
  155. P 2 2 -10 -5 0 -5
  156. A 2 -10 0 5 -90 90
  157. L 2 5 0 14 0 I
  158. L 2 -6 3 -15 3
  159. L 2 -6 -3 -15 -3
  160. ENDDRAW
  161. PINS
  162. ~
  163. ~
  164. ~
  165. ~
  166. ~
  167. ~
  168. Gnd
  169. ~
  170. ~
  171. ~
  172. ~
  173. ~
  174. ~
  175. Vcc
  176. ENDPINS
  177. MULTI
  178. 1 2 3
  179. 4 5 6
  180. 10 9 8
  181. 13 12 11
  182. ENDMULTI
  183. ENDDEF
  184.  
  185. #
  186. # 74LS03
  187. #
  188. DEF 74LS03 IC 14 0 1 4 3
  189. DRAW
  190. A 2 0 0 5 -90 90
  191. P 2 4 0 5 -10 5 -10 -5 0 -5
  192. L 2 -10 3 -17 3
  193. L 2 -10 -3 -17 -3
  194. L 2 5 0 14 0 I
  195. ENDDRAW
  196. PINS
  197. ~
  198. ~
  199. ~
  200. ~
  201. ~
  202. ~
  203. Gnd
  204. ~
  205. ~
  206. ~
  207. ~
  208. ~
  209. ~
  210. Vcc
  211. ENDPINS
  212. MULTI
  213. 1 2 3
  214. 4 5 6
  215. 10 9 8
  216. 13 12 11
  217. ENDMULTI
  218. ENDDEF
  219.  
  220. #
  221. # 74LS04
  222. #
  223. DEF 74LS04 IC 14 0 1 6 2
  224. DRAW
  225. P 2 4 7 0 0 3 0 -3 7 0
  226. L 2 7 0 16 0 I
  227. L 2 0 0 -7 0
  228. ENDDRAW
  229. PINS
  230. ~
  231. ~
  232. ~
  233. ~
  234. ~
  235. ~
  236. Gnd
  237. ~
  238. ~
  239. ~
  240. ~
  241. ~
  242. ~
  243. Vcc
  244. ENDPINS
  245. MULTI
  246. 2 1
  247. 4 3
  248. 6 5
  249. 8 9
  250. 10 11
  251. 12 13
  252. ENDMULTI
  253. ENDDEF
  254.  
  255. #
  256. # 74LS05
  257. #
  258. DEF 74LS05 IC 14 0 1 6 2 
  259. DRAW
  260. P 2 4 7 0 0 3 0 -3 7 0
  261. L 2 7 0 16 0 I
  262. L 2 0 0 -7 0
  263. ENDDRAW
  264. PINS
  265. ~
  266. ~
  267. ~
  268. ~
  269. ~
  270. ~
  271. Gnd
  272. ~
  273. ~
  274. ~
  275. ~
  276. ~
  277. ~
  278. Vcc
  279. ENDPINS
  280. MULTI
  281. 2 1
  282. 4 3
  283. 6 5
  284. 8 9
  285. 10 11
  286. 12 13
  287. ENDMULTI
  288. ENDDEF
  289.  
  290. #
  291. # 74LS08
  292. #
  293. DEF 74LS08 IC 14 0 1 4 3
  294. DRAW
  295. A 2 0 0 5 -90 90
  296. P 2 4 0 5 -10 5 -10 -5 0 -5
  297. L 2 -10 3 -17 3
  298. L 2 -10 -3 -17 -3
  299. L 2 5 0 12 0
  300. ENDDRAW
  301. PINS
  302. ~
  303. ~
  304. ~
  305. ~
  306. ~
  307. ~
  308. Gnd
  309. ~
  310. ~
  311. ~
  312. ~
  313. ~
  314. ~
  315. Vcc
  316. ENDPINS
  317. MULTI
  318. 1 2 3
  319. 4 5 6
  320. 10 9 8
  321. 13 12 11
  322. ENDMULTI
  323. ENDDEF
  324.  
  325. #
  326. # 74LS09
  327. #
  328. DEF 74LS09 IC 14 0 1 4 3
  329. DRAW
  330. A 2 0 0 5 -90 90
  331. P 2 4 0 5 -10 5 -10 -5 0 -5
  332. L 2 -10 3 -17 3
  333. L 2 -10 -3 -17 -3
  334. L 2 5 0 12 0
  335. ENDDRAW
  336. PINS
  337. ~
  338. ~
  339. ~
  340. ~
  341. ~
  342. ~
  343. Gnd
  344. ~
  345. ~
  346. ~
  347. ~
  348. ~
  349. ~
  350. Vcc
  351. ENDPINS
  352. MULTI
  353. 1 2 3
  354. 4 5 6
  355. 10 9 8
  356. 13 12 11
  357. ENDMULTI
  358. ENDDEF
  359.  
  360. #
  361. # 74LS10
  362. #
  363. DEF 74LS10 IC 14 0 1 3 4
  364. DRAW
  365. A 2 0 0 5 -90 90
  366. P 2 4 0 5 -12 5 -12 -5 0 -5
  367. L 2 5 0 14 0 I
  368. L 2 -12 4 -19 4
  369. L 2 -12 0 -19 0
  370. L 2 -12 -4 -19 -4
  371. ENDDRAW
  372. PINS
  373. ~
  374. ~
  375. ~
  376. ~
  377. ~
  378. ~
  379. Gnd
  380. ~
  381. ~
  382. ~
  383. ~
  384. ~
  385. ~
  386. Vcc
  387. ENDPINS
  388. MULTI
  389. 6 5 4 3
  390. 8 9 10 11
  391. 12 13 1 2
  392. ENDMULTI
  393. ENDDEF
  394.  
  395. #
  396. # 74LS11
  397. #
  398. DEF 74LS11 IC 14 0 1 3 4
  399. DRAW
  400. A 2 0 0 5 -90 90
  401. P 2 4 0 5 -12 5 -12 -5 0 -5
  402. L 2 5 0 14 0
  403. L 2 -12 4 -19 4
  404. L 2 -12 0 -19 0
  405. L 2 -12 -4 -19 -4
  406. ENDDRAW
  407. PINS
  408. ~
  409. ~
  410. ~
  411. ~
  412. ~
  413. ~
  414. Gnd
  415. ~
  416. ~
  417. ~
  418. ~
  419. ~
  420. ~
  421. Vcc
  422. ENDPINS
  423. MULTI
  424. 6 5 4 3
  425. 8 9 10 11
  426. 12 13 1 2
  427. ENDMULTI
  428. ENDDEF
  429.  
  430. #
  431. # 74LS12
  432. #
  433. DEF 74LS12 IC 14 0 1 3 4
  434. DRAW
  435. A 2 0 0 5 -90 90
  436. P 2 4 0 5 -12 5 -12 -5 0 -5
  437. L 2 5 0 16 0 I
  438. L 2 -12 4 -19 4
  439. L 2 -12 0 -19 0
  440. L 2 -12 -4 -19 -4
  441. ENDDRAW
  442. PINS
  443. ~
  444. ~
  445. ~
  446. ~
  447. ~
  448. ~
  449. Gnd
  450. ~
  451. ~
  452. ~
  453. ~
  454. ~
  455. ~
  456. Vcc
  457. ENDPINS
  458. MULTI
  459. 6 5 4 3
  460. 8 9 10 11
  461. 12 13 1 2
  462. ENDMULTI
  463. ENDDEF
  464.  
  465. #
  466. # 74LS13
  467. #
  468. DEF 74LS13 IC 14 0 1 2 5
  469. DRAW
  470. A 2 0 0 5 -90 90
  471. P 2 4 0 5 -10 5 -10 -5 0 -5
  472. P 2 2 -10 -8 -10 8
  473. L 2 5 0 14 0 I
  474. L 2 -10 6 -17 6
  475. L 2 -10 2 -17 2
  476. L 2 -10 -2 -17 -2
  477. L 2 -10 -6 -17 -6
  478. ENDDRAW
  479. PINS
  480. ~
  481. ~
  482. ~
  483. ~
  484. ~
  485. ~
  486. Gnd
  487. ~
  488. ~
  489. ~
  490. ~
  491. ~
  492. ~
  493. Vcc
  494. ENDPINS
  495. MULTI
  496. 6 5 4 2 1
  497. 8 9 10 12 13
  498. ENDMULTI
  499. ENDDEF
  500.  
  501. #
  502. # 74LS14
  503. #
  504. DEF 74LS14 IC 14 0 1 6 2
  505. DRAW
  506. P 2 4 7 0 0 3 0 -3 7 0
  507. L 2 7 0 16 0 I
  508. L 2 0 0 -7 0
  509. ENDDRAW
  510. PINS
  511. ~
  512. ~
  513. ~
  514. ~
  515. ~
  516. ~
  517. Gnd
  518. ~
  519. ~
  520. ~
  521. ~
  522. ~
  523. ~
  524. Vcc
  525. ENDPINS
  526. MULTI
  527. 2 1
  528. 4 3
  529. 6 5
  530. 8 9
  531. 10 11
  532. 12 13
  533. ENDMULTI
  534. ENDDEF
  535.  
  536. #
  537. # 74LS15
  538. #
  539. DEF 74LS15 IC 14 0 1 3 4
  540. DRAW
  541. A 2 0 0 5 -90 90
  542. P 2 4 0 5 -12 5 -12 -5 0 -5
  543. L 2 5 0 14 0
  544. L 2 -12 4 -19 4
  545. L 2 -12 0 -19 0
  546. L 2 -12 -4 -19 -4
  547. ENDDRAW
  548. PINS
  549. ~
  550. ~
  551. ~
  552. ~
  553. ~
  554. ~
  555. Gnd
  556. ~
  557. ~
  558. ~
  559. ~
  560. ~
  561. ~
  562. Vcc
  563. ENDPINS
  564. MULTI
  565. 6 5 4 3
  566. 8 9 10 11
  567. 12 13 1 2
  568. ENDMULTI
  569. ENDDEF
  570.  
  571. #
  572. # 74LS20
  573. #
  574. DEF 74LS20 IC 14 0 1 2 5
  575. DRAW
  576. A 2 0 0 5 -90 90
  577. P 2 4 0 5 -10 5 -10 -5 0 -5
  578. P 2 2 -10 -8 -10 8
  579. L 2 5 0 14 0 I
  580. L 2 -10 6 -17 6
  581. L 2 -10 2 -17 2
  582. L 2 -10 -2 -17 -2
  583. L 2 -10 -6 -17 -6
  584. ENDDRAW
  585. PINS
  586. ~
  587. ~
  588. ~
  589. ~
  590. ~
  591. ~
  592. Gnd
  593. ~
  594. ~
  595. ~
  596. ~
  597. ~
  598. ~
  599. Vcc
  600. ENDPINS
  601. MULTI
  602. 6 5 4 2 1
  603. 8 9 10 12 13
  604. ENDMULTI
  605. ENDDEF
  606.  
  607. #
  608. # 74LS21
  609. #
  610. DEF 74LS21 IC 14 0 1 2 5
  611. DRAW
  612. A 2 0 0 5 -90 90
  613. P 2 4 0 5 -10 5 -10 -5 0 -5
  614. P 2 2 -10 -8 -10 8
  615. L 2 5 0 14 0 I
  616. L 2 -10 6 -17 6
  617. L 2 -10 2 -17 2
  618. L 2 -10 -2 -17 -2
  619. L 2 -10 -6 -17 -6
  620. ENDDRAW
  621. PINS
  622. ~
  623. ~
  624. ~
  625. ~
  626. ~
  627. ~
  628. Gnd
  629. ~
  630. ~
  631. ~
  632. ~
  633. ~
  634. ~
  635. Vcc
  636. ENDPINS
  637. MULTI
  638. 6 5 4 2 1
  639. 8 9 10 12 13
  640. ENDMULTI
  641. ENDDEF
  642.  
  643. #
  644. # 74LS22
  645. #
  646. DEF 74LS22 IC 14 0 1 2 5
  647. DRAW
  648. A 2